import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextField;


public class Main extends JFrame {

	private JPanel pLogin;
	private JTextField txtUsername;
	private JTextField txtPassword;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Main frame = new Main();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Main() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 330);
		pLogin = new JPanel();
		pLogin.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(pLogin);
		pLogin.setLayout(null);
		
		JLabel lblUsername = new JLabel("Username:");
		lblUsername.setBounds(51, 80, 74, 14);
		pLogin.add(lblUsername);
		
		JLabel lblPassword = new JLabel("Password:");
		lblPassword.setBounds(51, 121, 59, 14);
		pLogin.add(lblPassword);
		
		JButton btnLogin = new JButton("Login");
		btnLogin.setBounds(95, 168, 89, 23);
		pLogin.add(btnLogin);
		
		JButton btnRegister = new JButton("Register");
		btnRegister.setBounds(221, 168, 89, 23);
		pLogin.add(btnRegister);
		
		txtUsername = new JTextField();
		txtUsername.setBounds(117, 77, 86, 20);
		pLogin.add(txtUsername);
		txtUsername.setColumns(10);
		
		txtPassword = new JTextField();
		txtPassword.setBounds(117, 118, 86, 20);
		pLogin.add(txtPassword);
		txtPassword.setColumns(10);
	}
}
